/*
 * JsonString.h
 *
 *  Created on: Jun 3, 2011
 *      Author: ToanNhan
 */

#ifndef JSONSTRING_H_
#define JSONSTRING_H_

#include "JsonValue.h"
#include "FBase.h"

using namespace Osp::Base;

class JsonString : public JsonValue {
public:
	const static mchar beginChar = '"';
	const static mchar endChar = '"';
protected:
	ByteBuffer *m_value;

public:
	JsonString* cloneN();
	String toJsonString();
public:

	JsonString(ByteBuffer *value);

	JsonString operator =(JsonString jsonString);

	String getValue();
	void setValue(ByteBuffer *value);
	void setValue(String str);

	JsonString();
	JsonString(const JsonString& jsonString);
	virtual ~JsonString();
};

#endif /* JSONSTRING_H_ */
